package com.zhitan.ems.app.iot.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhitan.ems.common.annotation.Excel;
import com.zhitan.ems.framework.core.mp.base.BaseEntity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备数据
 * 
 * @author zhitan
 * 
 * @date 2025-09-19 22:15:46
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("iot_device_log")
public class DeviceLogEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@TableId
	@Excel(name = "")
	private Long id;
	/**
	 * 
	 */
	@Excel(name = "")
	private Long deviceId;
	/**
	 * 
	 */
	@Excel(name = "")
	private String deviceName;
	/**
	 * 关联类型ID
	 */
	@ApiModelProperty("关联类型ID")
	@Excel(name = "关联类型ID")
	private Integer typeId;
	/**
	 * 监控数据
	 */
	@ApiModelProperty("监控数据")
	@Excel(name = "监控数据")
	private String dataJson;
	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createAt;
	/**
	 * 更新时间
	 */
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date updateAt;
	/**
	 * 
	 */
	@Excel(name = "")
	private String tenantName;
	/**
	 * 类型
	 */
	@ApiModelProperty("类型")
	@Excel(name = "类型")
	private Integer logType;
	/**
	 * 
	 */
	@Excel(name = "")
	private String content;
	/**
	 * 
	 */
	@Excel(name = "")
	private String tips;
	/**
	 * 
	 */
	@Excel(name = "")
	private Integer portId;
	/**
	 * 
	 */
	@Excel(name = "")
	private String createBy;
	/**
	 * 
	 */
	@Excel(name = "")
	private Long tenantId;

}